import http from '@/service/http'
import type * as T from '@/types/api/index'
const roleApi: T.IRoleApi = {
  allList(data) {
    return http.get('/member/role/findList', data)
  },
  add(data) {
    return http.post('/member/role/addRole', data)
  },
  edit(data) {
    return http.post('/member/role/addRole', data)
  },
  dels(data) {
    return http.post('/member/role/deleteRole', data)
  }
}

export default roleApi
